package com.sh.business.domain.bo;

import com.sh.business.domain.Notice;
import com.sh.common.mybatis.core.domain.BaseEntity;
import com.sh.common.core.validate.AddGroup;
import com.sh.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 公告业务对象 bms_notice
 *
 * @author ruoyi
 * @date 2024-10-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Notice.class, reverseConvertGenerate = false)
public class NoticeBo extends BaseEntity {

    /**
     * 公告ID
     */
    @NotNull(message = "公告ID不能为空", groups = { EditGroup.class })
    private Long noticeId;

    /**
     * 类型 1：公告 2：新闻
     */
    @NotNull(message = "类型 1：公告 2：新闻不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 公告标题
     */
    @NotBlank(message = "公告标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String noticeTitle;

    /**
     * 语言
     */
    @NotBlank(message = "语言不能为空", groups = { AddGroup.class, EditGroup.class })
    private String language;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sorts;

    /**
     * 公告内容
     */
    @NotBlank(message = "公告内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String noticeContent;

    /**
     * 公告状态（0正常 1关闭）
     */
    @NotBlank(message = "公告状态（0正常 1关闭）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
